package com.goudan.rabbitmq.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
//@ConfigurationProperties(prefix = "rabbitmq.delay")
public class DelayedQueueProperties {

    // 队列
    @Value("${rabbitmq.delay.queue:delayed.queue}")
    public String delayedQueueName;
    // 交换机名称
    @Value("${rabbitmq.delay.exchange:delayed.exchange}")
    public String delayedExchangeName;
    // routingKey
    @Value("${rabbitmq.delay.routingKey:delayed.routingKey}")
    public String delayedRoutingKey;
}
